package com.namecard.namecardapi.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * @author wjh
 * @create 2024-08-27 17:19
 * 行业表实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "industry_position")
public class Industry {
    @Id // 标识为主键
    private ObjectId id;
    
    @Indexed(unique = true)
    @ApiModelProperty(value = "职位",example = "IT")
    private String name;

    @ApiModelProperty(value = "职位集合",example = "Java")
    private List<String> positions;
}
